package org.cainiao.api.lark.reactive.authenticateandauthorize.getaccesstokens.restoperations;

import org.cainiao.api.lark.dto.response.LarkDataResponse;
import org.cainiao.api.lark.dto.response.authenticateandauthorize.getaccesstokens.AppAccessTokenResponse;
import org.cainiao.api.lark.dto.response.authenticateandauthorize.getaccesstokens.LarkTokenInfo;
import reactor.core.publisher.Mono;

public interface GetAccessTokens {

    Mono<AppAccessTokenResponse> getCustomAppAppAccessToken(String appId, String appSecret);

    Mono<LarkDataResponse<LarkTokenInfo>> refreshUserAccessToken(String grantType, String refreshToken);
}
